# 下载miniconda3软件
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-latest-Linux-x86_64.sh --no-check-certificate
# 把miniconda3安装在$CONDA_HOME目录下，这个变量需要在special_machines.sh配置
# 默认安装在~/opt/miniconda3目录下
bash Miniconda3-latest-Linux-x86_64.sh -b -p $CONDA_HOME
# 配置CONDA
conda init bash
source ~/.bashrc
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --add channels conda-forge

# 创建py38环境
yes | conda create -n py38 python=3.8
conda activate py38
yes | conda install tmux
yes | pip install ranger-fm

echo "Miniconda3 Install Successfully"